raar.agent.process.sensor
Class RASonarSensor

java.lang.Object
  extended by raar.agent.process.RAProcess
      extended by raar.agent.process.sensor.RASensor
          extended by raar.agent.process.sensor.RARegionSensor
              extended by raar.agent.process.sensor.RARegionSensor_Pie
                  extended by raar.agent.process.sensor.RASonarSensor
All Implemented Interfaces:
java.io.Serializable, RAAgentDependentProcess, RASensorUserSelectable

public class RASonarSensor
extends RARegionSensor_Pie
implements RASensorUserSelectable

A sensor with a response to massive objects within a pie-piece- shaped region. Returns the distance to the nearest massive object, relative to the radius of the pie.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.agent.process.sensor.RASensor
agent, output, outputName
 
Fields inherited from class raar.agent.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Fields inherited from interface raar.agent.process.RAAgentDependentProcess
NO_AGENT_DEFINED
 
Constructor Summary
RASonarSensor()
          Default constructor.
RASonarSensor(RAAgent agent)
          Construct the sensor.
 
Method Summary
 java.lang.String explain()
          Explain what the sensor does.
 java.lang.String toString()
          String representation.
 
Methods inherited from class raar.agent.process.sensor.RARegionSensor_Pie
getDirection, getRadius, getRegion, getSectionWidth, setDirection, setRadius, setSectionWidth
 
Methods inherited from class raar.agent.process.sensor.RARegionSensor
run
 
Methods inherited from class raar.agent.process.sensor.RASensor
acceptsInput, dumpRegisters, execute, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, removeReferenceToAgent, set, setAgent, setOutput, setReferenceToAgent, setSourceCode, suppliesOutput
 
Methods inherited from class raar.agent.process.RAProcess
clone, getProcessName, getSourceCode, reset, setProcessName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RASonarSensor

public RASonarSensor()
Default constructor.


RASonarSensor

public RASonarSensor(RAAgent agent)
Construct the sensor.

Method Detail

toString

public java.lang.String toString()
String representation.

Specified by:
toString in class RASensor

explain

public java.lang.String explain()
Explain what the sensor does.

Specified by:
explain in class RASensor